import { Service } from 'egg';

export default class DbPhoneService extends Service {
    public async checkPhoneBound(phone: string): Promise<boolean> {
        const count = this.app.mysql.count('user', { phone });
        return count;
    }
}
